package com.imay.live.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.imay.live.model.MenuItemModel;
import com.imay.live.R;

import java.util.List;

/**
 * Created by jeaman on 2017/4/13.
 */

public class PopupMenuAdapter extends BaseQuickAdapter<MenuItemModel, BaseViewHolder> {

    public PopupMenuAdapter(List<MenuItemModel> data) {
        super(R.layout.item_popup_menu, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MenuItemModel item) {
        helper.setText(R.id.popup_menu_tv_menu, item.getTextId());
    }
}
